from rest_framework.generics import ListAPIView

from . import Serializers

from . import models

class BannerAPIView(ListAPIView):
    queryset = models.Banner.objects.filter(is_delete=False,is_show=True).all().order_by('-order_by')
    serializer_class = Serializers.BannserModelSerializer




